package com.tomcat.myapplication.http;

public class HttpCodeData<T> {

    private String code;

    private T data;

    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String result) {
        this.code = result;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return  code.equals("200")||code.equals("52021")||code.equals("52007");
    }

    public String getMsg() {
        return message;
    }

    public void setMsg(String msg) {
        this.message = msg;
    }
}
